package cn.com.taurus.biz;

import cn.com.taurus.bean.AutomaticPlanMessageBean;
import cn.com.taurus.entity.AutomaticPlanMessage;
import cn.com.taurus.impl.AutomaticPlanMessageImpl;
import cn.com.taurus.mapper.AutomaticPlanMessageMapper;
import cn.com.taurus.service.AutomaticPlanMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xf
 * @createTime 2021-6-30 14点47分
 * @remark 实现层
 * @version 1.0
 */
@Repository
public class AutomaticPlanMessageBiz{

    //在使用@Autowired注解的时候，默认required=true,表示注入的时候bean必须存在，否则注入失败。
    @Autowired
    AutomaticPlanMessageImpl addAutomaticPlanMessageImpl;

    public int addAutomaticPlanMessage(AutomaticPlanMessage automaticPlanMessage) {
        return addAutomaticPlanMessageImpl.addAutomaticPlanMessage(automaticPlanMessage);
    }
    public List<AutomaticPlanMessage> queryAllAutomaticPlanMessage() {
        return addAutomaticPlanMessageImpl.queryAllAutomaticPlanMessage();
    }
    public List<AutomaticPlanMessage> queryAutomaticPlanMessageByCaId(Integer caId){
        return addAutomaticPlanMessageImpl.queryAutomaticPlanMessageByCaId(caId);
    }
    public Integer updateAutomaticPlanMessageByObject(AutomaticPlanMessage automaticPlanMessage){
        return addAutomaticPlanMessageImpl.updateAutomaticPlanMessageByObject(automaticPlanMessage);
    }
    public Integer deleteAutomaticPlanMessageByApmId(Integer apmId){
        return addAutomaticPlanMessageImpl.deleteAutomaticPlanMessageByApmId(apmId);
    }
    public List<AutomaticPlanMessage> conditionSelectAutomaticPlanMessage(AutomaticPlanMessageBean automaticPlanMessageBean){
        return addAutomaticPlanMessageImpl.conditionSelectAutomaticPlanMessage(automaticPlanMessageBean);
    }
}
